
window.addEventListener('DOMContentLoaded', () => {
    console.log('DOMContentLoaded')
    const replaceText = (selector: string, text: string) => {
        const element: HTMLElement | null = document.getElementById(selector);
        if (element) element.innerText = text;
    }
    for (const dependency of ['chrome', 'node', 'electron']) {
        replaceText(`${dependency}-version`, '111');
        const version = process.versions[dependency];
        if (typeof version === 'string') {
            replaceText(`${dependency}-version`, version);
        }
    }
})